package com.ds.generator;

import cn.hutool.core.io.FileUtil;

import java.io.File;

/*
 * @author: dongshuai
 * 静态文件生成器
 */
public class StaticGenerator {
    public static void main(String[] args) {
        String projectPath = System.getProperty("user.dir");//获取到这个项目的根目录
//        System.out.println(projectPath);
        //输入路径
        String inputPath = projectPath + File.separator + "ds-generator-demo-projects"+ File.separator+"acm-template";
        //输出路径
        String outputPath = projectPath;
        copyFilesByHutool(inputPath, outputPath);
    }

    /**
     *
     * @param inputPath 源文件路径
     * @param outputPath 目标路径
     */
    public static void copyFilesByHutool(String inputPath, String outputPath){
        FileUtil.copy(inputPath, outputPath, false);
    }

}
